package com.fhzn.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fhzn.auth.entity.UserDataResource;
import com.fhzn.auth.web.request.GrantUserDataResourceRequest;
import com.fhzn.auth.web.request.UserDataResourceRequest;

import java.util.List;

/**
 * @author 老顾
 * @apiNote
 * @since 2024/1/18
 */
public interface UserDataResourceService extends IService<UserDataResource> {

    /**
     * 根据数据资源查询用户
     *
     * @param request 用户数据资源请求
     * @return 用户列表
     */
    List<String> getUsersByDataResource(UserDataResourceRequest request);

    /**
     * 删除并授予数据资源
     *
     * @param request 请求
     * @return 操作成功
     */
    String deleteAndGrantDataResource(GrantUserDataResourceRequest request);
}
